package com.hxd.otc.module.my.contract;

import com.hxd.otc.common.enums.ExValidType;
import com.hxd.otc.module.my.bean.UserStatusBean;
import com.hxd.otc.mvp.base.IBasePresenter;
import com.hxd.otc.mvp.base.IBaseView;

/**
 * Created by lzy on 2018/6/12 0012.
 * description ${安全中心Contract}
 */
public interface SecurityCenterContract {
    interface View extends IBaseView {
        void findCardStatusSuccess(UserStatusBean userStatusBean);

        void findCardStatusFail(String errMessage);

        void setValidTypeSuccess(ExValidType exValidType);

        void getVerifyModeSmsSuccess(ExValidType newExValidType);

        void getVerifyModeEmailSuccess(ExValidType newExValidType);
    }

    interface Presenter extends IBasePresenter {
        void findCardStatus();

        void onSetExValidType(ExValidType exValidType);

        void changeExValidType(final ExValidType newExValidType, String verCode);

        void sendSetVerifyModeSms(ExValidType newExValidType);

        void sendExValidTypeEmail(ExValidType newExValidType);

    }
}
